package File.com;

import java.io.File;
import java.io.IOException;

public class FileDome01 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("D:\\IdeaProjects\\myFile\\java.txt");
        //System.out.println(f1.createNewFile());
        System.out.println(f1.delete());
        File f2 = new File("D:\\IdeaProjects\\myFile\\itxeat");
        //System.out.println(f2.mkdir());
        System.out.println(f2.delete());
        System.out.println(".....................");

        File f3 = new File("D:\\IdeaProjects\\myFile\\itcast");
        System.out.println(f3.mkdir());
        File f4 = new File("D:\\IdeaProjects\\myFile\\itcast\\java.txt");
        System.out.println(f4.createNewFile());
    }
}
